package org.lucas.service.impl;

import org.lucas.service.PhoneLocationQueryService;
import org.lucas.utils.PhoneLocationQueryUtil;
import org.lucas.vo.PhoneLocationApiResponseVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PhoneLocationQueryServiceImpl implements PhoneLocationQueryService {

    @Autowired
    private PhoneLocationQueryUtil phoneLocationQueryUtil;

    @Override
    public PhoneLocationApiResponseVO queryLocation(Long phoneNumber) {

        PhoneLocationApiResponseVO phoneLocationApiResponseVO = phoneLocationQueryUtil.getPhoneLocation(phoneNumber);

        return phoneLocationApiResponseVO;
    }
}
